package com.zyb.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    private String keyword;
    /*起始页*/
    private Integer currentPage = 1;
    /*每页展示条数*/
    private Integer pageSize = 5;
    /*计算每页显示的条数*/
    public Integer getBegin(){
        return (currentPage -1 )*pageSize;
    }
}
